/* @import "../node_modules/bootstrap/dist/css/bootstrap.css";
@import "../node_modules/bootstrap/dist/css/bootstrap-theme.css"; */
@import "../node_modules/angular/angular-csp.css";
@import "../node_modules/angular-ui-bootstrap/dist/ui-bootstrap-csp.css";
@import "../node_modules/angular-ui-grid/ui-grid.css";
@import "./assets/stylesheets/routing.css";
/* @import url("./assets/stylesheets/landscape.css") screen and (orientation: landscape); */

/* @import "./assets/stylesheets/override-var.css"; */
/* @import "./assets/stylesheets/iconify-split.css"; */
/* html {
  padding: 20px;
} */
ui-view > div {
  padding-left: 2px;
  padding-right: 2px;
}

div[ng-controller] div[ng-controller] {
  padding-left: 1em;

  /* &::after{
    content: "[" attr(ng-controller) "]";
  } */
}
div[ng-controller]::before {
  content: "[" attr(ng-controller) "]";
  color: red;
}
[mz-desc]::before {
  content: "desc:[" attr(mz-desc) "]";
  color: #ff00ff;
  text-decoration: underline;
}

[ng-transclude]::before {
  content: "slot:[" attr(ng-transclude) "]";
  color: #00ffff;
}

[ng-click] {
  color: blue;
  text-decoration: underline;
  cursor: pointer;
}

[ng-controller$="as vm"] [ng-click^="vm."]::after {
  content: "✔";
  color: greenyellow;
}

/* 反选不好做 */
/* [ng-controller$="as vm"] :not([ng-click^="vm."])::after {
  content: "!";
  color: red;
} */

.title1 {
  color: cyan;
}

.active {
  color: rgb(82, 206, 135);
  text-decoration: underline;
}

nav.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.debug-sref ~ nav,
.debug-sref ~ main {
  [ui-sref]:before {
    content: ' > ui-sref="' attr(ui-sref) '"';
    font-family: monospace;
  }

  [ui-sref] {
    color: blueviolet;
    padding: 0 0.25em;
  }
}

.debug-view ~ main {
  ui-view {
    padding: 0 1em 1em 1em;
    display: block;
    border: 5px solid darkgrey;

    ui-view {
      margin: 1em;
    }

    &:before {
      content: "<ui-view>";
      display: block;
      width: 100%;
      font-size: 1em;
      font-weight: bold;
      text-align: center;
      background-color: darkgrey;
      margin: 0 -1em;
      padding: 0 1em;
    }

    &:empty:after {
      display: block;
      width: 100%;
      text-align: center;
      content: "No view is loaded into this ui-view";
    }
  }
}

nav {
  border-bottom: 1px solid #fefefe;
  margin-top: 1em;

  div > a {
    background-color: #eee;
    text-decoration: none;
    color: #444;
    padding: 0.1em 1em;
    border: 1px solid darkgrey;
    border-bottom: none;
    border-radius: 10px 10px 0 0;

    &.active {
      color: black;
      background-color: #ccc;
      font-weight: bold;
    }
  }
}

/* sub-route */
.sub-view-co {
  display: flex;
  margin: auto;
  justify-content: center;
  padding-top: 20px;
}

/* @media (min-width: 576px) {
  .container {
    width: 550px;
  }
} */

/* ng-props */
.prop-unit {
  margin-bottom: 10px;
}

.prop-binding {
  min-height: 30px;
  border: 1px solid blue;
}

.prop-note {
  font-family: Monospace;
}
/* ng-props end */

/* bu-base */
.btstrap {
  padding-bottom: 100px;
}
[class^="col-"] {
  padding-top: 10px;
  padding-bottom: 10px;
  border: 1px solid rgba(86, 61, 124, 0.2);
  background-color: rgba(86, 61, 124, 0.15);
  &:hover {
    border: 1px solid #ddd;
    background: #eee;
  }
}
/* bu-base end */

/* collapse */
.horizontal-collapse {
  height: 70px;
}
.navbar-collapse.in {
  overflow-y: hidden;
}
.well {
  margin-bottom: 0;
}
/* collapse end */

/**
 * @polyfill
 * safari 的 aspect-ratio, 使用不生效
 */
#aspect-ratio-16\/9 {
  &.container {
    width: 100%;
    height: 0;
    /* `* 1%` 转换了单位  */
    padding-top: calc(9 / 16 * 1%); /* 9/16 = 0.5625 */
    position: relative;

    > .content {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
    }
  }
}
